<%@ page language="java" pageEncoding="utf-8"%>
<jsp:directive.page import="java.util.List , java.util.Map , com.sdcs.server.model.Resource"/>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> </title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<%@ include file="/commons/taglibs.jsp"%>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
</head>

<body class="mainbody">
 
		

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div align="center">
          		序号 
        </div></td>
        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"> 标题 </span></div></td>
        <td width="14%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"> 文件 </span></div></td>
        <td width="16%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"> 描述 </span></div></td>
        <td width="7%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">日期</span></div></td> 
        <td width="14%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
      <%
      	List list = (List) request.getAttribute("list") ;
      	Resource object = null ;
		for(int i=0; i<list.size(); i++){
			object = (Resource) list.get(i) ; 
		%>
		      <tr>
		        <td height="20" bgcolor="#FFFFFF">
		        	<div align="center"> <%=i+1%></div>
		        </td>  
		        
		        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> <%=object.getResource_name()%> </div></td>
		        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> 
		        <a  href="upload/<%=object.getResource_path()%>" target="_blank">下载文件</a> 
		        </div></td>
		        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> <%=object.getResource_describe()%>  </div></td>
		        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> <%=object.getResource_date()%> </div></td> 
		 
		        <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21"> 
		        	<%
					String type = request.getSession().getAttribute("type").toString() ;
		        	if( request.getSession().getAttribute("type") !=null   ){
						if(!type.equals("2")){ 
		        	%>		        	 
		         		<a href="resource_list.do?method=del&id=<%=object.getResource_id()%>&all=<%=request.getAttribute("all")%>"> 删除</a>  
		         		<%	  
						}  
					}  
	         		%> 
		         	</div>
		         		
		         </td>
		      </tr>
	<%
		}
	 %> 


		   
    </table></td>
  </tr>
</table>
 

</body>

</html>